﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RaytracerLib.Postprocessing;
using System.ComponentModel;

namespace Raytracer.PropertyGridDecorators
{
    public class GammaCorrectorProperties
    {
        private GammaCorrector m_gamma_corrector;

        public GammaCorrectorProperties(GammaCorrector a_gamma_corrector)
        {
            m_gamma_corrector = a_gamma_corrector;
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double GammaFactor
        {
            get
            {
                return m_gamma_corrector.GammaFactor;
            }
            set
            {
                m_gamma_corrector.GammaFactor = value;
            }
        }
    }
}
